<?php
class CommentLayer extends CWidget {
	public $topic_id;
	public $adviser_validation = false;
	public $adviser_topic_validation = null;
	public $adviser_has_error = false;
	public $owner_validation = false;
	public $owner_topic_validation = null;
	public $owner_has_error = false;
	public $comment = "";
	public $prefix = "";
	public $form_name = "NewProjectForm";
	public $style = "margin: 0px; padding-left:30px; width:95%; background-image:url(\"images/dot.png\");background-repeat: repeat-y;";
	public $rows = 5;
	public $columns = 60;
	public $area_style = '';
	public $read_only = false;

	public function run() {
		if ($this->adviser_topic_validation == "")
			$this->adviser_topic_validation = null;
		if ($this->owner_topic_validation == "")
			$this->owner_topic_validation = null;

		$this->render('comment_layer', array (
			'topic_id' => $this->topic_id,
			'adviser_validation' => $this->adviser_validation,
			'adviser_topic_validation' => $this->adviser_topic_validation,
			'adviser_has_error' => $this->adviser_has_error,
			'owner_validation' => $this->owner_validation,
			'owner_topic_validation' => $this->owner_topic_validation,
			'owner_has_error' => $this->owner_has_error,
			'comment' => $this->comment,
			'prefix' => $this->prefix,
			'style' => $this->style,
			'rows' => $this->rows,
			'columns' => $this->columns,
			'form_name' => $this->form_name,
			'area_style' => $this->area_style,
			'read_only' => $this->read_only
		));
	}

}
?>
